package com.ruoyi.session.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.session.domain.Session;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author xgw
 */
public interface ISessionService {

    //查询出所有存在的Session
    public AjaxResult selectExistSession();

    //增加Session
    public AjaxResult insertSession( Session session);

    //删除SessionId
    public AjaxResult deleteSessionBySessionId(Integer sessionId);

    //动态查询
    public AjaxResult dynamicSelectSession(String username,Integer strategyId,String Title);

    //查询历史会话
    public AjaxResult selectHistorySession(Integer userId);

    //查询出符合用户搜索的会话
    public AjaxResult selectSessionBySearch(String title , Integer userId);

    //更新会话标题
    public int updateSessionById(Integer sessionId,String title);

}
